| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

Rectangle.h
1 // Rectangle.h
3 //
5
6 namespace nkMaths
7 {
11 class Rectangle
12 {
13 public :
14
15 // Functions
20 Rectangle () noexcept ;
29 Rectangle (float x, float y, float width, float height) noexcept ;
30
31 // Utilities
38 bool pointInside (Point point) const ;
39
40 // Operators
47 Rectangle operator+ (const Rectangle& other) const ;
48
49 public :
50
51 // Attributes
52 float _x ;
53 float _y ;
54 float _width ;
55 float _height ;
56 } ;
57 }
nkMaths::Rectangle::_height
float _height
The full height of the rectangle.
Definition: Rectangle.h:55
nkMaths
Encompasses all API of component NilkinsMaths.
Definition: IntVector.h:7
nkMaths::Rectangle::Rectangle
Rectangle() noexcept
nkMaths::Rectangle::_x
float _x
The x coordinate of the origin.
Definition: Rectangle.h:52
nkMaths::Point
Represents a 2D Point.
Definition: Point.h:12
nkMaths::Rectangle::_width
float _width
The full width of the rectangle.
Definition: Rectangle.h:54
nkMaths::Rectangle::pointInside
bool pointInside(Point point) const
nkMaths::Rectangle::_y
float _y
The y coordinate of the origin.
Definition: Rectangle.h:53
nkMaths::Rectangle
Represents a 2D rectangle.
Definition: Rectangle.h:12